home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-04-17 | 1.7 KB | 51 lines | [TEXT/MPS ] |
- % ---------------------------------------------------------------------------
- % Class MACAlert
- %
- % In this module you find the programmers interface to Alerts.
- % It is built on top of the TOOLBOX routines in TOOLBOXControl.
- % For a description of the routines see Inside Macintosh, chapter 13.
- %
- % 890317/Boris Magnusson
- % 890416/Göran Eriksson
- %
- % ---------------------------------------------------------------------------
-
- external class MacDialogAlert="::SInterfaces:MacDialogAlert";
- MacDialogAlert class MacAlert;
- begin
-
- % FUNCTION Alert(alertID: INTEGER; filterProc: ProcPtr): INTEGER;
- short integer procedure Alert(alertID, filterProc);
- short integer alertId;
- integer filterProc;
- Alert:=TD.ToolboxAlert(alertID, filterProc);
-
- % FUNCTION StopAlert(alertID: INTEGER; filterProc: ProcPtr): INTEGER;
- short integer procedure StopAlert(alertID, filterProc);
- short integer alertId;
- integer filterProc;
- StopAlert:=TD.ToolboxStopAlert(alertID, filterProc);
-
- % FUNCTION NoteAlert(alertID: INTEGER; filterProc: ProcPtr): INTEGER;
- short integer procedure NoteAlert(alertID, filterProc);
- short integer alertId;
- integer filterProc;
- NoteAlert:=TD.ToolboxNoteAlert(alertID, filterProc);
-
- % FUNCTION CautionAlert(alertID: INTEGER; filterProc: ProcPtr): INTEGER;
- short integer procedure CautionAlert(alertID, filterProc);
- short integer alertId;
- integer filterProc;
- CautionAlert:=TD.ToolboxCautionAlert(alertID, filterProc);
-
- % PROCEDURE CouldAlert(alertID: INTEGER);
- PROCEDURE CouldAlert(alertID);
- short integer alertId;
- TD.ToolboxCouldAlert(alertID);
-
- % PROCEDURE FreeAlert(alertID: INTEGER);
- PROCEDURE FreeAlert(alertID);
- short integer alertId;
- TD.ToolboxFreeAlert(alertID);
-
- end;